package com.oceansoft.core.common.util;

import com.hui.platform.system.idgenarater.IdGenaraterUtil;
import com.oceansoft.core.common.constant.BusinessConstants;

public class SnUtil {
	//得到附件流水号
	public static String getFjSerialValue(int occupyNum,String occupyValue){
		String SerialString = IdGenaraterUtil.nextValue(BusinessConstants.TABLEPK, DatetimeUtil.getCurrentDateAsString());
		SerialString = StringUtil.fillPrefix(SerialString,occupyNum,occupyValue, true);
		return SerialString;
	}
	//得到物品流水号（非涉案）
	public static String getFsawpSerialValue(int occupyNum,String occupyValue){
		String SerialString = IdGenaraterUtil.nextValue(BusinessConstants.TABLEPK, DatetimeUtil.getCurrentDateAsString()+"_fsawp");
		SerialString = StringUtil.fillPrefix(SerialString,occupyNum,occupyValue, true);
		return SerialString;
	}
}
